SUBDIRS = xml
bin_PROGRAMS = unihan2-prefs

#prefs_gladedir = $(datadir)/unihan2
#prefs_glade_DATA = prefedit.xml SymbolNew.xml

INCLUDES =							\
	$(WARN_CFLAGS)						\
	$(PREFEDIT_CFLAGS)					\
	-I$(top_srcdir)/include					\
	-DPREFEDIT_DATA_DIR=\""$(datadir)"\" \
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
	-DUNIHAN_DATA_DIR=\""$(datadir)/unihan2"\"

desktopdir = $(datadir)/applications
desktop_in_files = unihan2-prefs.desktop.in
desktop_in_in_files = $(desktop_in_files:.desktop.in=.desktop.in.in)
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

%.desktop.in: %.desktop.in.in
	sed "s#Icon=#Icon=$(pkgdatadir)/images/#" $< > $@

unihan2_prefs_CFLAGS = $(PREFEDIT_CFLAGS)
unihan2_prefs_LDADD = $(PREFEDIT_LIBS)
unihan2_prefs_LDFLAGS = -rdynamic
unihan2_prefs_SOURCES =		\
	prefedit.c		\
	prefedit.h		\
	list_ctrl.h		\
	list_ctrl.c		\
	list_factory.h		\
	list_factory.c		\
	dialog.h		\
	dialog.c		\
	Prefedit_cb.h		\
	Prefedit_cb.c		\
	IMAdd_cb.h		\
	IMAdd_cb.c		\
	SymbolNew_cb.h		\
	SymbolNew_cb.c		\
	WordNew_cb.h		\
	WordNew_cb.c		\
	upimdpref.h			\
	upimdpref.c			\
	upimdpref_cb.h		\
	upimdpref_cb.c		\
	itabcpref.h			\
	itabcpref.c			\
	itabcpref_cb.h		\
	itabcpref_cb.c		\
	pinyinpref.h			\
	pinyinpref.c			\
	pinyinpref_cb.h		\
	pinyinpref_cb.c		\
	wubipref.h			\
	wubipref.c			\
	wubipref_cb.h		\
	wubipref_cb.c

#EXTRA_DIST =			\
#	$(prefs_glade_DATA)	\
#	$(desktop_in_in_files)

